package com.example.child_protection.dto.request.update;

import com.example.child_protection.dto.base.BaseUpdateRequestDTO;
import io.swagger.annotations.ApiParam;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 高危修改请求DTO
 * @date 2018-11-1
 * @author Biz
 */
@Getter
@Setter
public class AssessUpdateRequestDTO extends BaseUpdateRequestDTO {
    /**
     * 高危等级
     *
     * @mbggenerated
     */
    @ApiParam(value = "高危等级",required = true)
    @NotNull
    private Long assessGrade;

    /**
     * 描述
     *
     * @mbggenerated
     */
    @ApiParam(value = "描述",required = true)
    private String describe;

    /**
     * 备注
     *
     * @mbggenerated
     */
    @ApiParam(value = "备注",required = false)
    private String remark;

    public void valid(){

        super.validate( this, new Class[0] );
    }
    public boolean isValidGid() {

        return false;
    }

}
